#include "pch.h"

float randomValue()
{
	return (rand() % 1000) / 500.0-1;
}

float randomValueZ()
{
	return (rand() % 1000) / 1000.0;
}

osg::Vec3Array * GenerateSSAOSample64()
{
	osg::Vec3Array *result = new osg::Vec3Array(64);

	for (size_t i = 0; i < 64; ++i)
	{
		osg::Vec3 value =  osg::Vec3(randomValue(), randomValue(), randomValueZ());
		value.normalize();
		std::cout << "sampleValue:"<< value.x()<<"\t"<< value.y()<<"\t"<<value.z()<<"\t" << std::endl;
		(*result)[i] = value;
	}
	return result;
}